package org.hegang.design.first.adapterpattern.demo2;


/**
 * @ClassName Demo
 * @Describe:
 * @Author: gang.he
 * @Date: Created in 14:28 2021/4/22
 * @Modified:
 * @Version: V1.0
 */
public class Demo {
    public static void main(String[] args) {
        Cable huaweiCable = new HuaweiCable();
        Adapter adapter = new HandleAdapter(huaweiCable);
        Computer computer = new Computer();
        computer.network(adapter);
        System.out.println("############################");
        Cable XiaoMiCable = new XiaoMiCable();
        Adapter adapter1 = new HandleAdapter(XiaoMiCable);
        Computer computer1 = new Computer();
        computer1.network(adapter1);
    }
}
